package gouwuche

import (
	"server/a"
	"server/aa/lysd/shangpin"
	"server/aa/lysd/sku"
)

type S购物车model struct {
	a.A_MODEL
	A用户id       uint              `json:"用户id" gorm:"column:用户id;"`
	A商品         shangpin.S商品model `json:"商品" gorm:"->;foreignKey:S商品modelID;"`
	Asku        sku.Sskumodel     `json:"sku" gorm:"->;foreignKey:SskumodelID;"`
	A数量         int               `json:"数量" gorm:"column:数量;"`
	S商品modelID  uint              `json:"商品id" gorm:"column:商品id;"`
	SskumodelID uint              `json:"skuid" gorm:"column:skuid;"`
}

func (S购物车model) TableName() string {
	return "老鱼商店_购物车"
}
